package com.jswlw.controller.api.resp;

import com.jswlw.common.BaseApiResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.Date;
import java.util.List;

/**
 * @author 吴维斌 E-mail:wuweibin0817@163.com
 * @version 创建时间：${date} ${time}
 */
@ApiModel(description = "API-商户列表响应对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class OrderListResponse extends BaseApiResponse {

    List<OrderListData> data;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @EqualsAndHashCode(callSuper = false)
    public static class OrderListData {
        @ApiModelProperty(value = "订单ID", required = true, example = "58881")
        Integer id;

        @ApiModelProperty(value = "订单时间", required = true, example = "2018-09-09 11:22:33")
        Date createTime;

        @ApiModelProperty(value = "订单支付状态", required = true, example = "1")
        Integer payStatus;

        @ApiModelProperty(value = "订单金额", required = true, example = "1")
        Integer amount;
    }
}
